/*-------------------------------------------------------------------------

***************** Modification History ***********************************
   @doc
   @module ppicge.h - Header file for PP501 functionality|
   @end
   
$Log: /SoftPay/SP2KSIM/Source/PINPad/ppicge.h $ 
 * 
 * 1     7/19/99 5:42p Jim_b4
 * 
 * 1     7/19/99 4:26p Jim_b4
 * 
 * 2     6/09/99 11:20a Monique_b1
 * Change headers and file names for SP 2000
**************************************************************************

   Copyright (C) 1999 by VeriFone, Inc.

   All rights reserved.  No part of this software may be reproduced,
   transmitted, transcribed, stored in a retrieval system, or translated
   into any language or computer language, in any form or by any means,
   electronic, mechanical, magnetic, optical, chemical, manual or otherwise,
   without the prior written permission of VeriFone, Inc.

---------------------------------------------------------------------------*/
#ifndef VSPPICGE_H
#define VSPPICGE_H

#ifdef PP501_ICPA

#ifndef VSPPICGE_C
#if defined (_VSC)
extern int inInitPINPad501 ();
extern void vdPP501AdvTransFailed(void *pobTran, char *szRespCode, char *pszISOCode);
extern char * vdGGPPadSerNum (char * pszSerNumBuff);
extern int inSetPP501IdlePrompt ();
extern int inResetPINPad501 ();
extern int inGetICPATransCode (void *pobTran, unsigned char *pchIDBuff);
extern int inPerformMacAnalysis(void *pobTran);
extern VS_BOOL fMACException(void *pobTran, void *pobPacket, char *pchISOCode);
extern int inSetPINPadError (int inPPResp);
extern int inRecPINPad501Data (char *pchRecBuf, int inTimOut, int inMaxRecSize);
#endif
extern int inGetPinAccMac_PP501(void *pobTran);
extern int inGetICPASerNum (void *pobTran);
extern int inPPLoadWorkingKeys(void *pobTran);
#else
int inInitPINPad501 ();
void vdPP501AdvTransFailed(TRANSACTION_OBJECT *pobTran, char *szRespCode, char *pszISOCode);
char * vdGGPPadSerNum (char * pszSerNumBuff);
int inSetPP501IdlePrompt ();
int inResetPINPad501 ();
int inGetICPATransCode (TRANSACTION_OBJECT *pobTran, unsigned char *pchIDBuff);
int inPerformMacAnalysis(TRANSACTION_OBJECT *pobTran);
VS_BOOL fMACException(TRANSACTION_OBJECT *pobTran, PACKET_OBJECT *pobPacket, char *pchISOCode);
int inSetPINPadError (int inPPResp);
int inRecPINPad501Data (char *pchRecBuf, int inTimOut, int inMaxRecSize);
int inGetPinAccMac_PP501(TRANSACTION_OBJECT *pobTran);
int inGetICPASerNum (TRANSACTION_OBJECT *pobTran);
int inPPLoadWorkingKeys(TRANSACTION_OBJECT *pobTran);
#endif

#endif /*PP501_ICPA*/

#endif
